import { Button } from 'antd-mobile'
import {useState} from 'react'

const  Buu=()=> {
const [train,setTrain]=useState()
const handle=()=>{
setTrain('火车中转')
}
  return (
    <div>
      <h1>{train}</h1>
<Button onClick={()=>handle('火车')} >点击</Button>

    </div>

  )
}

export default Buu